package com.example.dayu521.msg_sender.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.dayu521.msg_sender.entity.SeckillSession;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * <p>
 * 秒杀活动场次 服务类
 * </p>
 *
 * @author baomidou
 * @since 2023-03-20
 */
public interface ISeckillSessionService extends IService<SeckillSession> {

    public final static ConcurrentHashMap<Long, Set<String>> shared=new ConcurrentHashMap<>();

    Page<Map<String, Object>> get_seckill_skus(Page<?> page, QueryWrapper<?> qw);

    List<Map<String, Object>> get_seckill_skus(QueryWrapper<?> qw);

    void sync_send_msg();

    void sync_send_msg2();

    void unlock(String v);

    void test_redis_atomic();

}
